package com.gyf.usercenter.data.api

import com.gyf.base.data.protocol.BaseResp
import com.gyf.usercenter.data.protocol.*
import retrofit2.http.Body
import retrofit2.http.POST
import rx.Observable

interface UserApi {
    @POST("user/info")
    fun register(@Body req: RegisterReq): Observable<BaseResp<String>>

    @POST("user/info")
    fun login(@Body req: LoginReq): Observable<BaseResp<UserInfo>>

    @POST("user/info")
    fun forgetPwd(@Body req: ForgetPwdReq): Observable<BaseResp<String>>

    @POST("user/info")
    fun resetPwd(@Body req: ResetPwdReq): Observable<BaseResp<String>>
}